﻿using Autofac;
using WindowsPhoneMvp.Navigation;
using WindowsPhoneMvp.Navigation.Parsing;
using Module = Autofac.Module;

namespace DemoWindowsPhoneMvp.Infrastructure
{
    public class ClientModule : Module
    {

        protected override void Load(ContainerBuilder builder)
        {
            //Navigation
            builder.RegisterType<NavigationParser>().As<INavigationParser>().SingleInstance();
            builder.RegisterType<Wp7NavigationService>().As<INavigationService>().SingleInstance();
            builder.RegisterType<NavigationServiceContext>().As<INavigationServiceContext>().SingleInstance();
            builder.RegisterType<ViewFinder>().As<IViewFinder>().SingleInstance();
        }
    }
}
